package com.dong.rabbitmq.consumer;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * <p>
 * 实现
 * </p>
 *
 * @author: DJ
 * @Date: 14:24 2022/9/30
 */
@Component
public class OcrConsumer {


    @RabbitListener(queues = {"ocr_queue_file_info"}, containerFactory = "xhContainerFactory")
    public void process(String msg) {
        System.out.println("ocr_queue_file_info : " + msg.toString());
        try {
            Thread.sleep(100000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
